﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccessLayer
{
    public partial class Color
    {
        public static Color FindByColorID(linqDatabaseDataContext db, int ColorID)
        {
            return (from u in db.Colors where u.ID == ColorID select u).SingleOrDefault();
        }

        public static List<Color> ToList(linqDatabaseDataContext db)
        {
            return (from u in db.Colors select u).ToList();
        }
    }
}
